package com.leap.entity.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@Schema(description = "用户信息类")
public class AuthorizeDTO {

    @Schema(description = "用户昵称")
    private String name;

    @Schema(description = "用户手机号")
    private String phone;

    @Schema(description = "用户性别")
    private String sex;

    @Schema(description = "用户头像的资源地址")
    private String avatar;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户的生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birth;

}
